// 省数据接口
export interface Iprovince {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  param: object
  parentId: number
  name: string
  value: string
  dictCode: null
  hasChildren: boolean
}

export type IprovinceList = Iprovince[]

// 医院列表数据接口
export type Status = 0 | 1
export interface IhospitalParams {
  page: number
  limit: number
  hosname?: string
  hoscode?: string
  hostype?: string
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  status?: Status
}

// 医院列表数据响应数据接口

export interface IbookingRule {
  cycle: number
  releaseTime: string
  stopTime: string
  quitDay: number
  quitTime: string
  rule: string[]
}

export interface IhospitalItem {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    hostypeString: string
    fullAddress: string
  }
  hoscode: string
  hosname: string
  hostype: string
  provinceCode: string
  cityCode: string
  districtCode: string
  address: string
  logoData: string
  intro: string
  status: number
  bookingRule: IbookingRule
  route?: string
}

// 医院详情接口
export interface IhospitalShow {
  bookingRule?: IbookingRule
  hospital?: IhospitalItem
}

export type IhospitalList = IhospitalItem[]

export interface IhospitalListRes {
  content: IhospitalList
  totalElements: number
}
